home *** CD-ROM | disk | FTP | other *** search
/ The Arsenal Files 8 / The Arsenal Files Collection #8 (Arsenal Computer) (1996).ISO / prg_casm / snpd9611.zip / OS_ID.C < prev    next >
Text File  |  1996-11-24  |  599b  |  37 lines

  1. .I 0 2
  2. /* +++Date last modified: 24-Nov-1996 */
  3.  
  4. .I 22 4
  5. /*
  6. **  get_os() - Determine OS in use
  7. */
  8.  
  9. .I 119 27
  10. /*
  11. **  Give up a time slice to the OS
  12. */
  13.  
  14. void t_slice(int t_os)
  15. {
  16.       union REGS t_regs;
  17.     
  18.       switch (t_os)
  19.       {
  20.       case DOS  :
  21.             break;
  22.  
  23.       case OS2  :
  24.       case WIN3 :
  25.       case WINS :
  26.             t_regs.x.ax = 0x1680;
  27.             int86(0x2f,&t_regs,&t_regs);
  28.             break;
  29.  
  30.       case DV   :
  31.             t_regs.x.ax = 0x1000;
  32.             int86(0x15,&t_regs,&t_regs);
  33.             break;
  34.       } /* switch(t_os) */
  35. }
  36.  
  37.